/**
 * Author: luoqi
 * Created Date: 2025-10-20 00:44:32
 * Last Modified: 2025-10-20 00:57:55
 * Modified By: luoqi at <**@****>
 * Copyright (c) 2025 <*****>
 * Description:
 */

#pragma once
#ifndef _LOGGERObj_HPP_
#define _LOGGERObj_HPP_

#include <utils/log.hpp>

class LoggerObj {
public:
    static QLog::Logger &obj()
    {
#ifndef UBOT_LOG_LVL
        static QLog::Logger obj("XBot", "xbot");
#else
        static QLog::Logger obj("XBot", "xbot", UBOT_LOG_LVL);
#endif
        return obj;
    }

private:
    LoggerObj() = default;

    ~LoggerObj() = default;

    LoggerObj(const LoggerObj &) = delete;

    LoggerObj &operator=(const LoggerObj &) = delete;
};

#endif
